home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / dodge.swf / scripts / __Packages / MovieClipHolder.as < prev    next >
Encoding:
Text File  |  2011-10-17  |  985 b   |  41 lines

  1. class MovieClipHolder extends MovieClip
  2. {
  3.    var mc;
  4.    function MovieClipHolder(m, shiny, doNotAdd, lowQualGlow)
  5.    {
  6.       super();
  7.       this.mc = m;
  8.       if(_root.effects >= 2 && !doNotAdd)
  9.       {
  10.          this.mc.blendMode = "add";
  11.       }
  12.       if(_root.effects >= 0 && shiny != null)
  13.       {
  14.          var _loc4_ = this.mc.filters;
  15.          _loc4_.push(new flash.filters.GlowFilter(shiny,100,15,15,1,!(lowQualGlow || _root.effects == 0) ? 2 : 1));
  16.          this.mc.filters = _loc4_;
  17.       }
  18.    }
  19.    function setMovie(m, shiny)
  20.    {
  21.       this.mc = m;
  22.       if(_root.effects >= 2)
  23.       {
  24.          this.mc.blendMode = "add";
  25.       }
  26.       if(_root.effects >= 1)
  27.       {
  28.          if(shiny)
  29.          {
  30.             var _loc3_ = this.mc.filters;
  31.             _loc3_.push(new flash.filters.GlowFilter(shiny,25,15,15,1.5,2));
  32.             this.mc.filters = _loc3_;
  33.          }
  34.       }
  35.    }
  36.    function getMovie()
  37.    {
  38.       return this.mc;
  39.    }
  40. }
  41.